package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description：
 * @author     ：quankk
 * @date       ：Created in 2019/5/17 16:04
 * @modified By：
 */
@ApiModel(value = "绑定手机号对象", description = "绑定手机号对象")
public class BindPhoneDTO extends DMSBaseDTO implements Serializable{

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String checkCode;

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "校验验证码类型,3：忘记密码，4：微信登录验证")
    private Short smsType;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "微信昵称")
    private String nickname;

    @ApiModelProperty(value = "微信头像")
    private String headPortrait;

    @ApiModelProperty(value = "微信省")
    private String province;

    @ApiModelProperty(value = "微信市")
    private String city;

    @ApiModelProperty(value = "微信国家")
    private String country;

    @ApiModelProperty(value = "appId")
    private String appId = "cyx";

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Short getSmsType() {
        return smsType;
    }

    public void setSmsType(Short smsType) {
        this.smsType = smsType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return "BindPhoneDTO{" +
                "checkCode='" + checkCode + '\'' +
                ", phone='" + phone + '\'' +
                ", smsType=" + smsType +
                ", openId='" + openId + '\'' +
                ", nickname='" + nickname + '\'' +
                ", headPortrait='" + headPortrait + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", country='" + country + '\'' +
                ", appId='" + appId + '\'' +
                '}';
    }
}
